﻿using Data.Entity;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Data
{
    public class DBContext : DbContext
    {
        static DBContext()
        {
            Database.SetInitializer<DBContext>(null);
        }

        public DBContext() : base(global::Data.Settings.Default.DbContext) { }

        public virtual void Comit() { }

        public DbSet<Logs> Logses { get; set; }

        public DbSet<Menu> Menus { get; set; }

        public DbSet<Position> Positions { get; set; }

        public DbSet<Department> Departments { get; set; }

        public DbSet<Branch> Branchs { get; set; }

        public DbSet<Company> Companys { get; set; }

        public DbSet<Role> Roles { get; set; }

        public DbSet<RolePemission> RolePermissions { get; set; }

        public DbSet<User> Users { get; set; }

    }
}
